/*
 * Project: Sudoku Hint Engine for Android
 * Copyright (C) 2010-2013 Emanuel Moecklin
 * 
 * Available under the terms of the Lesser General Public License (LGPL)
 */
package com.onegravity.sudoku.solver;

/**
 * @author Emanuel Moecklin
 */
public enum HintType {
	SMALL_CLUE(0),
	BIG_CLUE(1),
	HINT(2);
	
	private int key;
	
	HintType(int key) {
		this.key = key;
	}
	
	public int key() {
		return key;
	}
	
	public static final HintType newInstance(int key) {
		switch (key) {
		case 0: return SMALL_CLUE;
		case 1: return BIG_CLUE;
		case 2:
		default: return HINT;
		}
	}
}
